package com.wn.sddfp.client.bank.fallback;

import com.wn.common.model.bank.dto.BankCardAddDTO;
import com.wn.common.model.bank.dto.SignatureDto;
import com.wn.common.model.borrow.BorrowSyncRecordVo;
import com.wn.common.result.Result;
import com.wn.sddfp.client.bank.TradeLogApi;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author yellow Docter
 * @date 2024-09-09
 * @desc 蜗牛创想：www.woniuxy.com
 */
@Component
@Slf4j   // 初始化 log日志
public class TradeLogApiFallBack  implements TradeLogApi {

    @Override
    public SignatureDto proxyBindCardLog(BankCardAddDTO bankCardAddDTO) {

        SignatureDto result = new SignatureDto();
        result.setBankUrl("xxx");
        result.setPlatformNo("xxx");
        result.setReqData("xxx");
        result.setReqCode("服务调用失败、走服务降级");
        log.info("调用失败了 ...");

        return result;
    }

    @Override
    public Result syncBorrowRecord(BorrowSyncRecordVo borrowSyncRecordVo) {
        return Result.ok("服务降级");
    }


}
